/**
 * Created by alan on 2017/4/27.
 * 测站实测流量信息
 */
Ext.define("Admin.store.baseInfo.DdsDStmq", {
    extend: "Ext.data.Store",

    alias: "store.ddsDStmq",

    model: "Admin.model.baseInfo.DdsDStmq",
    method: "POST",
    autoLoad: true,
    proxy: {
        type: "ajax",
        url: config.URL + "szy/info/ddsDStmq/listAvg",
        extraParams: {
            river: config.RIVER,
            stcd: function() {
                var data = [];
                for (var i = 0; i < statList.length; i++) {
                    if (statList[i].itemZ === "1" && statList[i].river == config.RIVER) {
                        data.push(statList[i])
                    }
                }
                return data[0].stcd;
            }(),
            startTm: config.defaultStartDate,
            endTm: config.defaultEndDate
        },
        reader: {
            type: "json",
            rootProperty: "list",
            totalProperty: "count"
        }
    }
});